package mofei.concurrent.task;

/**
 * @author mofei@staff.weibo.com
 * @date 2019/2/22 1:30 PM
 */
public class WaitTask implements Runnable {

    @Override
    public void run() {
        System.out.println("Thread:"+Thread.currentThread().getName()+"调用wait()");
            try {
                synchronized (this){
                    this.wait();
                }
            } catch (InterruptedException e) {
                e.printStackTrace();
            }


    }
}
